home *** CD-ROM | disk | FTP | other *** search
- Path: engnews2.Eng.Sun.COM!usenet
- From: ball@Eng.Sun.COM (Mike Ball)
- Newsgroups: comp.lang.c++
- Subject: Re: Sun compiler bug?
- Date: 29 Jan 1996 23:45:35 GMT
- Organization: Sun Microsystems Inc.
- Message-ID: <4ejm6v$3ok@engnews2.Eng.Sun.COM>
- References: <4ejgfl$938@sun132.spd.dsccc.com>
- Reply-To: ball@Eng.Sun.COM
- NNTP-Posting-Host: cygany.eng.sun.com
-
- In article 938@sun132.spd.dsccc.com, kcline@sun132.spd.dsccc.com (Kevin Cline) writes:
- > The Sun version 4 compiler won't compile this:
- >
- > class X {
- > typedef int T;
- > };
- >
- > enum E { T = 0 };
- >
- > It complains:
- > "foo.C", line 5: Error: Multiple declaration for T.
-
- It's a known bug, an artifact of an attempt to be backward compatible with
- cfront 2.0 :-( Unfortunately, it was discovered too late to make it into
- the recent 4.1 release. It's been there for years, now suddenly it gets
- discovered twice within a couple of months. Sigh.....
-
- -Mike Ball-
-
-